package com.wtb.javatool.service;

import com.wtb.javatool.common.PageBean;
import com.wtb.javatool.dto.UserDto;
import com.wtb.javatool.entity.Student;
import com.wtb.javatool.entity.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserService {

    List<User> findUser(Long userId, String userName, String phone, Integer projectType, Integer userType);

    PageBean<UserDto> findClassStudents(Long classId,
                                        Long teamId,
                                        Long studentId,
                                        String userName,
                                        Integer haveTeam,
                                        Integer currentPage,
                                        Integer size,
                                        String studentNo,
                                        String college,
                                        String major,
                                        String className);

    void setTeamForStudents(Long classId, Long teamId, List<Long> studentIds);

    PageBean<Student> findAllStudents(Long classId,
                                      Long studentId,
                                      String studentName,
                                      Integer begin,
                                      Integer size,
                                      String studentNo,
                                      String college,
                                      String major,
                                      String className);
                                      
    /**
     * 根据小组ID查询小组成员
     * 
     * @param teamId 小组ID
     * @return 小组成员列表
     */
    List<UserDto> findStudentsByTeamId(Long teamId);
}
